package com.utils.bean;


import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 
 * @TableName images
 */
@TableName(value ="images")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Images implements Serializable {
    /**
     * id
     */
    @ApiModelProperty(value = "图片ID")
    @TableId(type = IdType.AUTO)
    private Integer id;

    public Images(String name, String suffix, Integer usid, Integer abandon) {
        this.name = name;
        this.suffix = suffix;
        this.usid = usid;
        this.abandon = abandon;
    }

    /**
     * 图片的名字
     */
    @ApiModelProperty("图片的名字")
    private String name;

    /**
     * 图片的后缀
     */
    @ApiModelProperty("图片的后缀")
    private String suffix;

    /**
     * 关联的账户
     */

    private Integer usid;

    /**
     * 该照片是否遗弃 0是遗弃 1没有遗弃
     */
    private Integer abandon;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}